package com.sooth.system.datasource.service;

import com.dream.template.service.IService;
import com.sooth.system.datasource.view.SysDataSourceBo;
import com.sooth.system.datasource.view.SysDataSourceVo;
import com.sooth.system.datasource.view.TableColumnVo;

import java.util.List;
import java.util.Map;


public interface ISysDatasourceService extends IService<SysDataSourceVo, SysDataSourceBo> {

    void test(SysDataSourceBo datasource);

    List<Map<String, String>> listTable(Long datasourceId);

    List<TableColumnVo> listField(Long datasourceId, String table);

    List<String> listPrimaryKeys(Long datasourceId, String table);
}
